//
//  UIView+Extension.swift
//  YYWeibo
//
//  Created by strongwallyi on 15/12/28.
//  Copyright © 2015年 strongwallyi. All rights reserved.
//

import UIKit

extension UILabel{

    convenience init(textColor: UIColor, fontSize: CGFloat){
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
    }
}


extension UIButton{

    convenience init(textColor: UIColor, fontSize: CGFloat){
        self.init()
        self.setTitleColor(textColor, forState: .Normal)
        self.titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    }
}